package orders;

import java.io.Serializable;

/*
 * Item of store: name, prive, discount, number, unit
 */
public class Item implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String name;
	private double price;
	private double discount;
	private double number;
	private String unit;
	
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Item() {
		super();
		discount = 0;
	}
	
	public Item(String name, double price, double discount, double number, String unit) {
		super();
		this.name = name;
		this.price = price;
		this.discount = discount;
		this.number = number;
		this.unit = unit;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public double getDiscount() {
		return discount;
	}
	public void setDiscount(double discount) {
		this.discount = discount;
	}
	public double getNumber() {
		return number;
	}
	public void setNumber(double number) {
		this.number = number;
	}
}
